package com.dingreading.cloud.subject.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "subjects")
public class Subjects implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    private Integer enabled;

    private Integer freeStatus;

    private Integer lessonNum;

    private Integer levelEnd;

    private Integer levelIndex;

    private String levelName;

    private Long parentId;

    private Integer showOrder;

    private String subjectDescribe;

    private Long subjectMainId;

    private String subjectName;

    private Integer subjectOrder;

    private Integer selfStore;

    private Integer dxhEnabled;

    private String cooperationType;

    private String jumpUrl;

    /**
     * 书籍ISBN
     */
    private String bookIsbn;

    /**
     * 书籍图片
     */
    private String bookImg;

    /**
     * 书籍出版社
     */
    private String bookPress;

    /**
     * 教研视频地址
     */
    private String videoUrl;

    /**
     * 教研视频名称
     */
    private String videoName;
}
